let base = "http://39.105.17.28:8080"
function login () {
  var url = base + '/drapi/v1/user/n/weixin/login'
  return url;
}
function goodsList () {
  var url = base + '/drapi/v1/goods/n/find'
  return url;
}
function homeImg () {
  var url = base + '/drapi/v1/image/n/getHomeImage'
  return url;
}
// function goodsInfo () {
//   var url = base + '/drapi/v1/goods/n/find';
//   return url
// }
function addressList () {
  var url = base + '/drapi/v1/address/t/getUserAddressList'
  return url;
}
function updateAddress () {
  var url = base + '/drapi/v1/address/t/updateUserAddress'
  return url;
}
function deleteAddress () {
  var url = base + '/drapi/v1/address/t/deleteUserAddress'
  return url;
}
function addressOption () {
  var url = base + '/drapi/v1/address/t/getAddressList'
  return url
}
function addAddress() {
  var url = base + '/drapi/v1/address/t/addUserAddress'
  return url
}
function cartsList () {
  var url = base + '/drapi/v1/cart/t/get'
  return url
}
function addToCart () {
  var url = base + '/drapi/v1/cart/t/add'
  return url
}
function addOrder () {
  var url = base + '/drapi/v1/order/t/get'
  return url
}
function orderList () {
  var url = base + '/drapi/v1/order/t/get'
  return url
}
function relationship () {
  var url = base + '/drapi/v1/user/t/getUserRelationship'
  return url
}
function addMessage () {
  var url = base + '/drapi/v1/msg/t/add'
  return url
}
function getMessage () {
  var url = base + '/drapi/v1/msg/t/get'
  return url
}
function getFreight () {
  var url = base + '/drapi/v1/order/t/getFreight'
  return url
}
module.exports = {
  goodsList: goodsList,
  homeImg: homeImg,
  // goodsInfo: goodsInfo,
  login: login,
  addressList: addressList,
  updateAddress: updateAddress,
  deleteAddress: deleteAddress,
  addressOption: addressOption,
  addAddress: addAddress,
  cartsList: cartsList,
  addToCart: addToCart,
  addOrder: addOrder,
  orderList: orderList,
  relationship: relationship,
  addMessage: addMessage,
  getMessage: getMessage,
  getFreight: getFreight
}